import request from '@/utils/request.js'

// 获取地址
export const getAddressList=()=>{
  return request.get('/member/address')
}

// 添加地址
export const addAddressList=(data)=>{
  return request.post('/member/address',data)
}

// 修改地址
export const updateAddressList=(id,data)=>{
  return request.put(`/member/address/${id}`,data)
}

// 删除地址
export const deleteAddressList=(id)=>{
  return request.delete(`/member/address/${id}`)
}